package com.fly.springbootTemplate.service;

import com.fly.springbootTemplate.entity.Student;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface StudentService {
    //增加学生
     boolean addStudent(Student student);
    //删除学生
     boolean deleteStudent(Integer sno);
    //修改学生
     boolean updateStudent(Student student);
    //查询学生
     List<Student> getAllStudent();
    //根据学号查询学生
     Student getStudentBySno(Integer sno);

    //根据特定字段修改学生
     boolean updateStudentByItem(Student student);
    //批量增加学生
     boolean addBatchStudent(List<Student> students);
    //批量编辑学生
     boolean updateBatchStudent(List<Student> students);
}
